package com.lagou.service;

import com.lagou.anno.MyRpcConsumer;
import com.lagou.service.IStudentService;
import com.lagou.vo.Student;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CallStudentService {

    @MyRpcConsumer
    private IStudentService studentServiceImpl;
    @MyRpcConsumer
    private IBlogService blogServiceImpl;

    public void update(){
        studentServiceImpl.updateStudent("nouse");
    }

    public Student getStudent(){
        return studentServiceImpl.findOneStudent("nouser");
    }

    public void getBlogTitle(){
        List<String> list = blogServiceImpl.findBlog();
        for (String s : list) {
            System.out.println(s);
        }
    }
}
